package com.admin.education.dataTransferObject.userAnswerSheet.Mapper;

import com.admin.education.dataTransferObject.userAnswerSheet.OwnAnswerTransfer;
import com.admin.education.dataTransferObject.userAnswerSheet.UserAnswerSheetTransfer;
import com.admin.education.dataTransferObject.userAnswerSheet.UserAnswerTransfer;
import com.admin.education.models.UserAnswerSheetAnswer;
import com.admin.education.models.UserAnswerSheetOwn;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public abstract class UserAnswerMapper {
    @Mappings({})
    public abstract UserAnswerTransfer mapFrom(UserAnswerSheetAnswer userAnswerSheetAnswer);

    @Mappings({})
    public abstract List<UserAnswerTransfer> mapFrom(List<UserAnswerSheetAnswer> userAnswerSheetAnswers);

    @Mappings({})
    public abstract OwnAnswerTransfer mapFrom(UserAnswerSheetOwn userAnswerSheetOwn);

    @Mappings({})
    public abstract List<OwnAnswerTransfer> mapFromOwn(List<UserAnswerSheetOwn> userAnswerSheetOwns);
}
